package com.cangheng.app.testapp1.action;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cangheng.app.testapp1.service.BaseService;

@Controller
public class BaseAction {

	private static final Logger logger = LoggerFactory.getLogger(BaseAction.class);
	@Autowired
	private BaseService baseService;
	
	@RequestMapping("/index")
	public String index () {
		logger.info(" Action1.index()");
		baseService.service();
		return "index";
	}

	public BaseService getBaseService() {
		return baseService;
	}

	public void setBaseService(BaseService baseService) {
		this.baseService = baseService;
	}
}
